import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Poder1 here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Poderbala extends Poderes
{
    /**
     * Act - do whatever the Poder1 wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    /**
     * Solo hace la llamada del metodo MuevePoder
     */
    public void act() 
    {
        //Dispara();
        MuevePoder();
    }
    
    /**
     * Este poder cuando lo agarra ya sea el jugador o Pc ira disparando
     */
    public void Dispara()
    {
        setLocation(getX(),getY()-5);
        if (getY() < 10)
        {
            getWorld().removeObject(this);
        }
    }
    
    
}
